FROM java:8

RUN mkdir /opt/jishi
COPY web/target/web-1.0-SNAPSHOT.jar /opt/jishi/jishi.jar

RUN date "+%Y-%m-%d %H:%M:%S" > /opt/jishi/version.txt

EXPOSE 8010

CMD ["java", "-Xms512m", "-Xmx1024m", "-jar", "/opt/jishi/jishi.jar"]
